﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class DXFNumIFmt : DXFNum
    {
        private byte ifmt;

        public override void Read(BinaryReader reader)
        {
            byte unused = reader.ReadByte();
            ifmt = reader.ReadByte();
        }

        public override void Write(BinaryWriter writer)
        {
            writer.Write((byte) 0);
            writer.Write(ifmt);
        }

        public override InternalNumberFormat GetNumberFormat()
        {
            return new InternalNumberFormat(null, ifmt);
        }
    }
}